Skip to content

Update Google OAuth authorization settings

Request

Modifies Google OAuth authorization settings.

Security
ApiKeyAuth
Path
subdomainstringrequired

Unique subdomain of requested Hub.

Query
api_versionstring

Api version

Value:"V3-R1"
Bodyapplication/json
enabledboolean

State of Google OAuth authorization.
In order to enable this method the domains whitelist has to be set and enabled.

curl -i -X PUT \
  'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/access_restriction/google_oauth?api_version=V3-R1' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "enabled": true
  }'

Responses

OK

Bodyapplication/json
enabledboolean

State of Google OAuth authorization.
In order to enable this method the domains whitelist has to be set and enabled.

Response
{ "enabled": true }